package com.bjsxt.userscenters.springmvc.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bjsxt.userscenters.common.controller.BaseController;
import com.bjsxt.userscenters.common.util.ConstatFinalUtil;
import com.bjsxt.userscenters.users.service.IUsersService;


@Controller
@RequestMapping("/back/admins")
public class AdminsBackController extends BaseController
{
	/**
	 * 登陆后的页面
	 * @return
	 */

	@RequestMapping("/main")
	public String main()
	{
		ConstatFinalUtil.SYS_LOGGER.info("---main--");
		return 	"/back/admins/main";
	}
	
	@RequestMapping("/logout")
	public String logout(HttpSession session)
	{
		ConstatFinalUtil.SYS_LOGGER.info("-------loginOut------");
		session.removeAttribute("admins");
		return "redirect:/login.do";
	}
	@RequestMapping("/leftMenu")
	public String leftMenu(HttpSession session)
	{
		ConstatFinalUtil.SYS_LOGGER.info("-------leftMenu------");
		
		return "back/admins/leftMenu";
	}
}
